import { type MapType } from '@/stores/map';
export interface LevelGameInfo {
  map: MapType;
  player: { x: number; y: number };
  targets: { x: number; y: number }[];
  cargos: { x: number; y: number }[];
}

export type GameData = LevelGameInfo[];

export const levelOneGameInfo: LevelGameInfo = {
  map: [
    [1, 1, 1, 1, 1, 1, 1, 1],
    [1, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 1],
    [1, 1, 1, 1, 1, 1, 1, 1],
  ],
  player: { x: 1, y: 1 },
  targets: [
    { x: 3, y: 4 },
    { x: 5, y: 2 },
  ],
  cargos: [
    { x: 2, y: 2 },
    { x: 3, y: 3 },
  ],
};

export const levelTwoGameInfo: LevelGameInfo = {
  map: [
    [1, 1, 1, 1, 1, 1, 1, 1, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 2, 2, 2, 2, 2, 2, 2, 1],
    [1, 1, 1, 1, 1, 1, 1, 1, 1],
  ],
  player: { x: 2, y: 2 },
  targets: [
    { x: 3, y: 4 },
    { x: 4, y: 2 },
  ],
  cargos: [
    { x: 2, y: 6 },
    { x: 3, y: 5 },
  ],
};

export const levelGameInfo: GameData = [levelOneGameInfo, levelTwoGameInfo];
